package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.ElasticSearchClientFallback;
import com.zqh.myfmmall.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-03-13 15:45
 */
@FeignClient(value = "elasticsearch",fallbackFactory = ElasticSearchClientFallback.class)
public interface ElasticSearchClient{
    @GetMapping("elasticsearch/product/{key}/{pageNum}/{pageSize}")
    Result searchProduct(@PathVariable("key") String key,
                         @PathVariable("pageNum") Integer pageNum,
                         @PathVariable("pageSize") Integer pageSize);
}
